import { addAppComponent } from '@/app'
import MapViewVue from './MapView.vue'
import { waitForMapLoaded } from './core'

export { map } from './core'

export async function setupCoreMap() {
  addAppComponent({ component: MapViewVue }, { top: 0, left: 0, right: 0, bottom: 0 })
  await waitForMapLoaded()
}
